<?php

//this plugin doesn't use a plugin folder to store any info

class ComparePlugin extends ServerPlugin {    

    public function checkSolution($submission, $submission_id) {
        $user_answer = $submission['answer'];
        $right_answer = $this->problem->getAnswer();

        $accepted = $user_answer === $right_answer;

        return array('accepted' => $accepted ? 1 : 0);
    }

}
?>